body{
    max-width: 540px;
    min-width: 320px;
    margin: 0 auto;
    font: normal 14px/1.5 Tathoma,"Lucida Grande",Verdana,"Microsoft Yahei",STXihei,hei;
    color: #000;
    background: #f6f2f2;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}
a{
    text-decoration: none;
}
div{
    box-sizing: border-box;
}
ul,span
,li{
    list-style: none;
    /* ul 里面有margin和padding 值 要进行初始化 */
    margin: 0;
    padding:0;
}

/* 搜索框 */
.seach-index{
    display: flex;
    /* 固定定位 不以父级为准  只以屏幕为准 */
    position: fixed;
    top: 0;
    left: 50%;
    /*使用了定位 不能在使margin 进行居中 */
    transform: translateX(-50%);
    /* 考虑兼容性  */
    -webkit-transform: translateX(-50%);
    width: 100%;
    /* 不能以整个屏幕为宽度  设置最大宽度和最小宽度 来限制 */
    max-width: 540px;
    min-width: 320px;
    /* 这个里面的高度都是定死的 */
    height: 44px;
    justify-content: flex-end;
    background-color: #f6f6f6;
    border-bottom: 1px solid #ccc;
}
.search{
    /* 这里是伪元素的父盒子 子绝父相 */
    position: relative;
    height: 26px;
    /* div里面设置了box-sizing 包含了border 如果还是设置和heigh一样高的话 文字偏下  */
    /* 所以 line-height 设置行高减去 border */
    line-height: 24px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin: 7px 10px ;
    flex: 1;
    font-size: 12px;
    color: #ccc;
    /* 让文字向右移动 使用padding */
    padding-left:25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    
}
.search::before{
    content: "";
    /* 伪元素默认的是行内元素 所以要先转换成块级元素才能 设置大小 */
    /* 这里设置成块级盒子 div里面的文字就会被挤下来 */
    /* display: block; */
    /* 这里使用绝对定位  来进行居中或者设置大小 绝对定位可以 相对定位就不可以*/
    position: absolute;
    top: 0px;
    left: 0px;
    transform: translate(-50% -50%);
    width: 15px;
    height: 15px;
    margin: 5px;
    background:url(../images/sprite.png) no-repeat -59px -277px;
    background-size: 104px auto;
}
.user{
    width: 44px;
    height: 43px;
    background-color:#f2f2f2;
    color:#099FDE; 
    text-align: center;
    margin-top: 0;
}
.user::before{
    content: "";
    /* a 是行内元素 只有转换成块级元素才有大小 */
    display: block;
    width: 24px;
    height: 26px;
    margin: 0 auto -2px;
    /* 从firework 量下来的尺寸是 负值 */
    background: url(../images/sprite.png) no-repeat -60px -191px;
    /* 图片的大小 要缩放到一半  而不是盒子的大小 */
    background-size: 104px auto;
}
/* focus */
/* 固定定位不占位置 图片 会向上占有固定定位的位置 使用margin 或padding 挤下来 */
.focus{
    padding-top: 44px;
}
.focus img{
    width: 100%;
}
/* 导航栏 */
.local-nav{
    overflow: hidden;
    /* 不要忘记给父盒子设置 display:flex */
    display: flex;
    /* 不给宽度 会自动继承父级的宽度 */
    height: 64px;
    margin: 3px 4px;
    background-color: #FCFFFC;
    border-radius: 8px;
    /* 让子项自动分配剩余空间 */
    /* justify-content: space-around; */
}
.local-nav li{
    flex:1;
}
.local-nav a{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color:#595959 ;
}
.local-nav li [class^="local-nav-ion"]{
    width: 32px; 
    height: 32px;
    background-color: pink;
    margin-top: 5px;    
    background: url(../images/localnav_bg.png) no-repeat 0 0;
    background-size: 32px auto;

}
.local-nav li .local-nav-ion2{
    background-position: 0 -32px;
}
.local-nav li .local-nav-ion3{
    background-position: 0 -64px;
}
.local-nav li .local-nav-ion4{
    background-position: 0 -96px;
}
.local-nav li .local-nav-ion5{
    background-position: 0 -128px;
}
/* nav */
nav{
    border-radius: 8px;
    margin: 0 4px 3px;
    overflow: hidden;
}
.nav-common{
    display: flex;
    height: 88px;
    background-color: pink;
}
.nav-common:nth-child(2){
   margin: 3px 0;
}
.nav-items{
    flex: 1;
    display: flex;
}
/* -n+2 jiushi 选择前面两个元素 */
.nav-items:nth-child(-n+2){
    border-right: 1px solid #fff;
}
.nav-items:nth-child(n+2){
    flex-direction: column;
    justify-content: center;
}

.nav-items a{
    flex: 1;
    box-sizing: border-box;
    height: 41px;
    line-height: 41px;
    text-align: center;
    color: #fff;
    /* 文字阴影 */
    text-shadow: 0 2px 2px rgb(0, 0, .2);
    border-bottom: 0.5px solid #fff;
}
.nav-items a:last-child{
    border-bottom: none ;
}
.nav-items:nth-child(1) a{
    height: 100%;
    text-align: center;
    border: 1px;
    background: url(../images/hotel.png) no-repeat bottom center;
    /* 是个三倍图 */
    background-size: 121px auto;
}

.nav-common:nth-child(1){
    /* 不要忘记加浏览器的前缀 */
    background: -webkit-linear-gradient(left,#FA5E56,#FA994D);
}
.nav-common:nth-child(2){
    /* 不要忘记加浏览器的前缀 */
    background: -webkit-linear-gradient(left,#4B90ED,#53BBED);
}
.nav-common:nth-child(3){
    /* 不要忘记加浏览器的前缀 */
    background: -webkit-linear-gradient(left,#36C2A6,#6BD457);
}
/* sub-nav */
.sub-nav{
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    /* 要求子盒子要换行 */
    flex-wrap: wrap;
    height: 115px;
    border-radius: 10px;
    background-color: #fff;
    border-bottom: 1px solid #CFCFCF;
    box-shadow: 0.5px o.5px rgb(76, 74, 74);
}
.sub-nav li{
    /* flex里面默认是不会换行 要设置才能 让每个li的宽度是 20%  flex 可以写百分比*/
    flex: 20%;
    /* width: 20%; */
}
.sub-nav li a {
    display: flex;
    width: 100%;
    color: #222222;
    font-size: 12px;
    text-align:center;
    flex-direction: column;
    justify-content: space-around;
}

.sub-nav li [class^="sub-nav-ico"] {
    width: 22px;
    height: 19px;
    margin: 10px auto;
    margin-bottom: 4px;
    background-color: #6BD457;
    background: url(../images/subnav-bg.png) no-repeat 0px 0px;
    background-size: 24px auto;
}
.sub-nav li .sub-nav-ico2{
    background: url(../images/subnav-bg.png) no-repeat 0px -24px;
    background-size: 24px auto;
}
.sub-nav li .sub-nav-ico3{
    background: url(../images/subnav-bg.png) no-repeat 0px -55px;
    background-size: 24px auto;
}
.sub-nav li .sub-nav-ico4{
    background: url(../images/subnav-bg.png) no-repeat 0px -85px;
    background-size: 24px auto;
}
.sub-nav li .sub-nav-ico5{
    background: url(../images/subnav-bg.png) no-repeat 0px -114px;
    background-size: 24px auto;
}
.sub-nav li .sub-nav-ico6{
    background: url(../images/subnav-bg.png) no-repeat 0px -140px;
    background-size: 24px auto;
}
.sub-nav li .sub-nav-ico7{
    background: url(../images/subnav-bg.png) no-repeat 0px -170px;
    background-size: 24px auto;
}
.sub-nav li .sub-nav-ico8{
    background: url(../images/subnav-bg.png) no-repeat 0px -200px;
    background-size: 24px auto;
}
.sub-nav li .sub-nav-ico9{
    background: url(../images/subnav-bg.png) no-repeat 0px -250px;
    background-size: 24px auto;
}
.sub-nav li .sub-nav-ico10{
    background: url(../images/subnav-bg.png) no-repeat 0px -276px;
    background-size: 24px auto;
}
/* 热门活动 */
.sales-box{
    height: 468px;
    border-top: 1px solid #CFCFCF;
    border-bottom: 1px solid #CFCFCF;
    box-shadow: 0.5px o.5px rgb(76, 74, 74);
    background-color: #fff;
    margin-top: 9px;
}
.sales-ha{
    display: flex;
    position: relative;
    height: 45px;
    border-bottom: 0.5px solid #F2F2F2;
    align-items: center;
}
.sales-ha a{
    display: flex;
    justify-content: center;
    align-items: center;
}
.sales-ha a:nth-child(1){
    width: 150px;
    height: 15px;
    background:url(../images/hot.png) no-repeat 0 -20px;
    background-size: 79px auto;
    margin-left: 9px;
}
.sales-ha a:nth-child(1) span{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 20px;
    font-size: 10px;
    color: #fff;
    border-radius: 3px;
    margin-left: 90px;
    background-color: #D9D9D9;
}
.sales-ha a:nth-child(1) span::before{
    content: "";
    width: 15px;
    height: 15px;
    line-height: 15px;
    background-color: #fff;
    background: url(../images/sprite.png)no-repeat  -46px -152px ;
    background-size: 69px auto;
    margin-left: 1px;
}

.sales-ha a:last-child{
    position: absolute;
    right: 5px;
    align-self: flex-end;
    width:103px;
    height: 20px;
    border-radius: 8px;
    font-size: 12px;
    color: #fff;
    text-align: center;
    margin:10px 0;
    /* 要记得加 浏览器前缀 兼容 */
    background:-webkit-linear-gradient(left,#FF4F68,#FF6BC5)
}

.sales-bd-frist{
    /* 使用flex的时候一定要主要谁是上一级的父级 */
    display: flex;
}
.sales-bd-frist div{
    flex: 50%;
    height: 187px;
    border-bottom: 0.5px solid #F2F2F2;
}
.sales-bd-frist div:nth-child(1){
    border-right: 0.5px solid #F2F2F2;
    background: url(../upload/pic1.jpg)no-repeat;
    background-size: 100% 100%;
}
.sales-bd-frist div:nth-child(2){
    background: url(../upload/pic2.jpg)no-repeat;
    background-size: 100% 100%;
}
.sales-bd-second{
    display: flex;
    /* 多个子盒子的时候 要设置换行 */
    flex-wrap: wrap;
}
.sales-bd-second div{
    flex: 50%;
    height: 117px;
    border-bottom: 0.5px solid #F2F2F2;
}
.sales-bd-second div:nth-child(odd){
    border-right:0.5px solid #F2F2F2;
    background-size: 100% 100%;
}
.sales-bd-second div:nth-child(1){
    background:url(../upload/pic3.jpg) no-repeat;
    background-size: 100% 100%;
}
.sales-bd-second div:nth-child(2){
    background:url(../upload/pic4.jpg) no-repeat;
    background-size: 100% 100%;
}
.sales-bd-second div:nth-child(3){
    background:url(../upload/pic5.jpg) no-repeat;
    background-size: 100% 100%;
}
.sales-bd-second div:nth-child(4){
    background:url(../upload/pic6.jpg) no-repeat;
    background-size: 100% 100%;
}

